<?php
require_once('../../config.php');
Doctrine::loadModels('../../models');

if( $_REQUEST["item_name"])
{
    $item_name = strip_tags($_REQUEST["item_name"]);
    $category_id = strip_tags($_REQUEST["category_id"]);
	$item_desc = strip_tags($_REQUEST["item_desc"]);
	$item_value = strip_tags($_REQUEST["item_value"]);
	
	$lkGlossary = new LkGlossary();
	
	$lkGlossary->item_name = $item_name;
	$lkGlossary->category_id = $category_id;
	$lkGlossary->item_desc = $item_desc;
	$lkGlossary->item_value = $item_value;
	$lkGlossary->item_value = 0;
	$lkGlossary->deleted = 0;
	
// saves the user and the associated email
	$lkGlossary->save();

			
}



?>